import 'package:flutter/material.dart';
import 'package:getpro/getpro.dart';
import 'package:getx_base/pages/user_page/user_page.dart';

import 'home_model.dart';

class HomePage extends BasePageWidget<HomePageModel>{
  const HomePage({Key? key}) : super(key: key);


  @override
  HomePageModel get getModel => HomePageModel();

  @override
  Widget buildChild(HomePageModel model, BuildContext context) {
    return Center(
      child: TextButton(
        onPressed: (){
          RouterPro.to(UserPage());
        },
        child: Text("to user ${model.count.value}"),
      )
    );
  }


  @override
  Widget loadingView(){
    return Center(
      child: Text("加载中...."),
    );
  }

  @override
  bool get enablePullUp => false;

  @override
  bool get enablePullDown => false;

}



